package com.itheima.admin.service;

import com.itheima.xo.pojo.Admin;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * @author :WuJunJie
 * packageName :com.itheima.admin.service
 * fileName :AdminService
 * creationTime :2022-11-04 16:30
 */
@Transactional
public interface AdminService {

    Boolean add (Admin admin);

    Boolean delete(String id);

    Boolean update(Admin admin);

    List<Admin> findAll();

    Admin findByEmail(String email);
}
